<?php
/*
 * Creative Bulletin Board Generation 3
 * Version 1.0 Beta 1
 +------------------------------------
 * Forum Application, Index Module (Frontend)
 * Started: 30 August, 2009 8:17 AM
 * Script version: 1.0
 +------------------------------------
 */

class module implements module_interface{
	public function returninitvars(){
		global $lang;
		$this->info["page_title"] = $lang->getByKey("forum.index");
		$this->info["page_description"] = "";
		$this->info["module_version"] = "1.0";
		return $this->info;
	}

	public function construct(){ # call our initialize functions
		global $perm;
		if($perm->getValue("can_view_boards") == "0"){
			$this->run = false;
		}
		else $this->run = true;
	}
	
	public function run(){
		global $view;
		$view->writeIn("This is forum index page!");
	}

	public function destruct(){}
}
